package cn.com.haopy.yue.ai.db.entity.arisk;

import cn.com.haopy.yue.ai.db.entity.BaseEntity;
import cn.com.haopy.yue.ai.db.mybatis.JsonStringArrayTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

/**
 * @Description: TODO
 * @Author DuTao
 * @Date 2025/3/26 9:05
 */
@Data
@TableName(value = "arisk_papers_drugs", autoResultMap = true)
@ApiModel(value = "问卷-药品推荐")
public class AIRiskPapersDrugs extends BaseEntity {
    @TableField(value = "paper_id")
    @ApiModelProperty(value = "用户ID")
    private Integer paperId;

    @TableField(value = "illness_id")
    @ApiModelProperty(value = "疾病ID")
    private Integer illnessId;

    @ApiModelProperty(value = "药品名称")
    @TableField(value = "drug_names", jdbcType = JdbcType.BLOB, typeHandler = JsonStringArrayTypeHandler.class)
    private String[] drugNames;


}
